package com.gg.controller;

import com.gg.pojo.ResultData;
import com.gg.pojo.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: YDYX
 * @Date: 2022/1/11 - 01 - 11 - 11:18
 * @Description: com.gg.controller
 * @version: 1.0
 */
@RestController
public class TestController {
    @RequestMapping("/consumer/fallback/{id}")
    public ResultData handlerFallback(@PathVariable("id") Integer id){
        User user = new User(1,"null");
        return new ResultData(4444,"此处返回fallback方法===getOrder");
    }
}
